from click import OptionParser
from prompt_toolkit import PromptSession, prompt
from prompt_toolkit.key_binding import KeyBindings
from prompt_toolkit.application import run_in_terminal
from time import sleep
from cli import Cli
import click
from click import Context, Command, Option, Argument, core


@click.command()
@click.option("-h", "--host", envvar="FTP_HOST", help="FTP 服务器的地址")
@click.option("-P", "--port", envvar="FTP_PORT", type=int, help="FTP 服务器的端口")
def cli(host, port):
    Cli(host, port)


if __name__ == '__main__':
    cli()
